package com.fsp.controller;


import com.fsp.pojo.User;
import com.fsp.util.JsonResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("json")
public class JsonResultController {
    @RequestMapping("result")
    public JsonResult jsonResult(){
        User user = new User();
        user.setName("sandy");
        user.setAge(20);
        return JsonResult.ok(user);
    }
}
